﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Audio;

namespace Platformer.NPCs
{
    class InnKeeper : NPC
    {
        int level;

        public InnKeeper(Vector2 pos, Level l)
            : base(pos, l, "Sprites\\InnKeeper")
        {
            level = l.LevelIndex;
            sayings.Add("Of course your grace, you may stay at this humble castle, so long as you have the coin");
            sayings.Add("Of course, for the squire carries all of the provisions. In the cases they did not have squires, they would carry it themselves. If you do not have these, perhaps you should get them!");
            sayings.Add("There is no chapel, for it has been demolished in order to rebuild it, but, in urgent cases, I know that vigils could be kept anywhere, so perhaps you could use the courtyard out yonder?");
            sayings.Add("Kneel, and accept your Knighthood. ");
            sayings.Add("GOOD LORD, WHAT HAVE YOU DONE!?!? LEAVE NOW!!");
            Name = "Inn Keeper";
        }

        public override string getWhatToSay()
        {
            if (level == 1)
            {
                return (string)sayings[sayingsPos++ % 3]; //REALLY?!?!
            }
            else if (level == 3)
            {
                return (string)sayings[3];
            }
            else
            {
                return (string)sayings[4];
            }
        }
    }
}
